#!/bin/bash

inthdl() {
    echo "sigint received, 不理你"
}
tstphdl() {
    echo "sigtstp received, 不理你"
}

trap inthdl sigint
trap tstphdl sigtstp

while true
do
    date +'%F %T'
    sleep 1
done
